"use strict";let goTop=document.querySelector(".back_to_top");function trackScroll(){let o=window.pageYOffset,t=document.documentElement.clientHeight;o>t&&goTop.classList.add("back_to_top-show"),o<t&&goTop.classList.remove("back_to_top-show")}function backToTop(){window.pageYOffset>0&&(window.scrollBy(0,-80),setTimeout(backToTop,0))}window.addEventListener("scroll",trackScroll),goTop.addEventListener("click",backToTop);var prevScrollpos=window.pageYOffset;window.onscroll=function(){var o=window.pageYOffset;document.getElementById("dredex_header").style.top=prevScrollpos>o?"0":"-80px",prevScrollpos=o};const anchors=document.querySelectorAll('a[href*="#"]');for(let o of anchors)o.addEventListener("click",(function(t){t.preventDefault();const e=o.getAttribute("href").substr(1);document.getElementById(e).scrollIntoView({behavior:"smooth",block:"start"})}));function myFunction(){document.getElementById("myDropdown").classList.toggle("show")}window.onclick=function(o){if(!o.target.matches(".dropbtn")){var t=document.getElementById("myDropdown");t.classList.contains("show")&&t.classList.remove("show")}};